<?php if (!defined('THINK_PATH')) exit(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="<?php echo BASE_DIR; ?>top/admincp.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3268" name=GENERATOR>
<script language="javascript" type="text/javascript">
//全选代码
function selectall1() 
{ 
    var a = document.getElementsByTagName("input"); 
    if(a[0].checked==true){ 
    for (var i=0; i<a.length; i++) 
       if (a[i].type == "checkbox") a[i].checked = false; 
    } 
    else 
    { 
    for (var i=0; i<a.length; i++) 
       if (a[i].type == "checkbox") a[i].checked = true; 
    } 
} 
</script>
</HEAD>
<BODY topMargin=10>
<DIV id=append_parent></DIV>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>用户管理&nbsp;»&nbsp;用户列表</TD>
        </TR></TBODY></TABLE><BR>
      <FORM id=settings name=settings 
      action="<?php echo url('AdminDelUsers','Euser'); ?>" method=post>
        <TABLE class=tableborder cellSpacing=0 cellPadding=0 width="100%" 
border=0>
        <TBODY>
        <TR class=header>
          <TD width="15%">编号</TD>
          <TD width="15%">账号</TD>
          <TD width="15%">权限</TD>
          <TD width="15%">到期时间</TD>
          <TD width="20%">来自</TD>
          <TD width="20%">常用操作</TD>
        </TR>
        <TBODY>
		<?php foreach($EUsers as $User): ?>
        <TR>
          <TD width="15%" class=altbg0><input name="euser_id[]" type="checkbox" value="<?php echo $User['euser_id']; ?>" class="checkbox"><?php echo $User['euser_id']; ?></TD>
          <TD width="15%" class=altbg0><?php echo $User['username']; ?></TD>
          <TD width="15%" class=altbg0><?php echo $User['q']; ?></TD>
          <TD width="15%" class=altbg0>
		  <?php
		  //判断是否过期
		  if($User['maturity'] < time()){
		  	echo '<font style=color:#FF0000>' . date('Y-m-d',$User['maturity']) . '</font>';
		  } else {
		  	echo date('Y-m-d',$User['maturity']);
		  }
		  ?>
		  </TD>
          <TD width="20%" class=altbg0><?php echo $User['from']; ?></TD>
          <TD width="20%" class=altbg0>
		  <A href="<?php echo url('AdminDelUser','Euser',null,null,array('euser_id'=>$User['euser_id'])); ?>">删</A>&nbsp;&nbsp;
		  <a href="<?php echo url('AdminUpdateUser','Euser',null,null,array('euser_id'=>$User['euser_id'])); ?>">改</a>&nbsp;&nbsp;
		  管&nbsp;&nbsp;
		  <?php if($User['lock'] == 'Y'){ ?>
		  <A href="<?php echo url('AdminUpdateLock','Euser',null,null,array('euser_id'=>$User['euser_id'],'lock'=>'N')); ?>">已锁</A>
		  <?php }else{ ?>
		  <A href="<?php echo url('AdminUpdateLock','Euser',null,null,array('euser_id'=>$User['euser_id'],'lock'=>'Y')); ?>">未锁</A>
		  <?php } ?>
		  </TD>
        </TR>
		<?php endforeach; ?>
        <TR>
          <TD colspan="6" class=altbg0><?php echo $page; ?></TD>
          </TR></TBODY></TABLE>
        vip0:个人用户 vip1:企业会员 vip2:Vip企业会员 vip3:合作伙伴 administrator:后台管理员<br>
        <font color="#FF0000">· 如果您看到到期时间为红色，则说明账号已到期！</font> &nbsp;&nbsp;
		<font color="#FF0000">· 锁定账号后，用户将不能登陆管理及查看自己的网页</font> &nbsp;&nbsp; <br />
      <CENTER>
        <INPUT name=Submit2 type=button class=button id="Submit2" value="全 选" onClick="javascript:selectall1()">
        <INPUT name=Submit type=submit class=button id="Submit" value="删 除 选 中">
      </CENTER></FORM></TD></TR></TBODY></TABLE>
<br>
<br>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
    <TR>
      <TD><BR>
            <FORM id=settings name=settings 
      action="<?php echo url('AdminSearchUser','Euser'); ?>" method=post>
              <TABLE class=tableborder cellSpacing=0 cellPadding=0 width="100%" 
border=0>
                <TBODY>
                  <TR class=header>
                    <TD colSpan=2>搜索用户<IMG 
            id=menuimg_b8e6f4fa493903c4 
            style="MARGIN-TOP: -12px; FLOAT: right; MARGIN-RIGHT: 8px" 
            src="<?php echo BASE_DIR; ?>top/menu_reduce.gif" border=0> </TD>
                  </TR>
                <TBODY id=menu_b8e6f4fa493903c4>
                  <TR>
                    <TD class=altbg1 width="40%"><B>登陆账号:</B><BR>
                        <SPAN 
            class=smalltxt>最大字符串长度为40个</SPAN></TD>
                    <TD width="60%" class=altbg2><INPUT
            name=username id="username" size=50>                    </TD>
                  </TR>
                </TBODY>
              </TABLE>
              <BR>
              <CENTER>
                <INPUT name=Submit type=submit class=button id="Submit" value="提 交 搜 索">
              </CENTER>
      </FORM></TD></TR>
  </TBODY>
</TABLE>
<BR><BR>
<DIV class=footer>
<HR width="80%" color=#9db3c5 noShade SIZE=0>
Powered by <A style="COLOR: #666" href="http://www.ThankPHP.com/" 
target=_blank><B>ThankPHP!</B> 0.1.0</A> &nbsp;© 2009-2010, <B><A 
style="COLOR: #666" href="http://www.ThankPHP.com/" target=_blank>ThankPHP 
Inc.</A></B><SPAN class=smalltxt></SPAN></DIV>
</BODY></HTML>
